<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>DevEnvSync</title>
        <style type="text/css">
            body { font-size:12px; line-height: 21px;}
        </style>
        <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
    </head>
    <body>
        <?php
        // 2015-7-14 SoChishun Added.
        $date = date('Ymd');
        $path = 'F:\PDC\LocalDevSyncEnv\Project\V_' . $date . '\\';
        if (!is_dir($path)) {
            mkdir($path, 0777, true);
        }
        echo '<div><h3>==ZIP ALL==</h3>';
        echo '<div>';
        echo '<strong>XCall</strong><br />';
        echo '<textarea cols="120" rows="6">';
        echo 'rar a -m0 "F:\PDC\LocalDevSyncEnv\Project\V_', $date, '\XCall1505_all.rar" "F:\PDC\ProjectEnv\xcall150505" -x"F:\PDC\ProjectEnv\xcall150505\Uploads" -x"F:\PDC\ProjectEnv\xcall150505\Application\Runtime" -x"F:\PDC\ProjectEnv\xcall150505\.git\" -x"F:\PDC\ProjectEnv\xcall150505\Application\XCall" -x"F:\PDC\ProjectEnv\xcall150505\Application\TTF" -x"F:\PDC\ProjectEnv\xcall150505\UnVersionLibrary" -x"F:\PDC\ProjectEnv\xcall150505\aspnet_client"';
        echo '</textarea>';
        echo '</div>';

        echo '<div>';
        echo '<strong>XCRM</strong><br />';
        echo '<textarea cols="120" rows="3">';
        echo 'rar a -m0 "F:\PDC\LocalDevSyncEnv\Project\V_', $date, '\XCallCRM_all.rar" "F:\PDC\ProjectEnv\XCallCRM" -x"F:\PDC\ProjectEnv\XCallCRM\.localhistory"';
        echo '</textarea>';
        echo '</div>';

        echo '<div>';
        echo '<strong>Vendorlib</strong><br />';
        echo '<textarea cols="120" rows="3">';
        echo 'rar a -m0 "F:\PDC\LocalDevSyncEnv\Project\V_', $date, '\VendorReslib_all.rar" "F:\PDC\ProjectEnv\VendorReslib"';
        echo '</textarea>';
        echo '</div>';
        echo '</div>';

        echo '<div><h3>==ZIP PATCHES==</h3>';
        echo '<div>';
        echo '<strong>XCall</strong><br />';
        echo '<textarea cols="120" rows="3">';
        echo 'rar a -m0 "F:\PDC\LocalDevSyncEnv\Project\V_', $date, '\XCall1505_ip.rar" "F:\PDC\ProjectEnv\xcall150505\Application\WBM" -x"F:\PDC\ProjectEnv\xcall150505\Application\WBM\ProjectResourceLibrary"';
        echo '</textarea>';
        echo '</div>';

        echo '<div>';
        echo '<strong>XCRM</strong><br />';
        echo '<textarea cols="120" rows="3">';
        echo 'rar a -m0 "F:\PDC\LocalDevSyncEnv\Project\V_', $date, '\XCallCRM_ip.rar" "F:\PDC\ProjectEnv\XCallCRM\MSeatClient.Call" "F:\PDC\ProjectEnv\XCallCRM\CRMWebServices"';
        echo '</textarea>';
        echo '</div>';

        echo '<div>';
        echo '<strong>Vendorlib</strong><br />';
        echo '<textarea cols="120" rows="3">';
        echo 'rar a -m0 "F:\PDC\LocalDevSyncEnv\Project\V_', $date, '\VendorReslib_ip.rar" "F:\PDC\ProjectEnv\VendorReslib\Net\backup"';
        echo '</textarea>';
        echo '</div>';
        echo '</div>';

        echo '<div><br />';
        echo '<strong>命令行打开资源管理器：</strong><br />';
        echo '<textarea cols="120" rows="3">';
        echo 'explorer F:\PDC\LocalDevSyncEnv\Project';
        echo '</textarea>';
        echo '</div>';
        ?>
        <script type="text/javascript">
            $('h3').click(function () {
                $(this).nextAll().toggle();
            })
        </script>
    </body>
</html>
